import request from '@/utils/request'

//  获取车辆类型分页数据
export const getPageList = (params) => request.get('/manager/truckType/page', { params })

//  添加车辆类型
export const postModels = (data) => request.post('/manager/truckType', data)

// 获取车辆详情
export const getArticle = (id) => request.get(`/manager/truckType/${id}`)

// 编辑车辆
export const putModels = (data) => request.put(`/manager/truckType/${data.id}`, data)

// 删除车辆
export const delModels = (id) => request.delete(`/manager/truckType/${id}`)
